﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dynamic.Facades.EntLib.Data;
using System.Data.SqlClient;
using System.Data;

namespace Dynamic.Testing.Web
{
    public partial class DoSave : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.ContentType = "application/text";
            Database db = DatabaseFactory.CreateDatabase();
            SqlCommand sqlCom = new SqlCommand();
            sqlCom.CommandText = Request["data"];
            db.ExecuteNonQuery(sqlCom);
            Response.Write("插入成功！");
        }
    }
}
